package com.jie;

import io.micrometer.core.instrument.MeterRegistry;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.metrics.MeterRegistryCustomizer;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @Author: 杰
 * @Project :netty-communication
 * @Description:
 * @DateTime: 2023/11/1 14:29
 **/
@MapperScan("com.jie.mapper")
@SpringBootApplication(scanBasePackages = "com.jie")
@EnableAspectJAutoProxy(exposeProxy = true)//开启spring注解aop配置的支持
public class CommunicationApplication {

    public static void main(String[] args) {
        SpringApplication.run(CommunicationApplication.class);
    }

//    @Bean
//    MeterRegistryCustomizer<MeterRegistry> configure(@Value("${spring.application.name}") String name){
//        return (registry) -> registry.config().commonTags("application", name);
//    }
}